package http

import (
	"htgis/monitor/module/agent/util"
	"net/http"
)

func configMemoryRoutes() {
	http.HandleFunc("/proc/memory", func(w http.ResponseWriter, r *http.Request) {
		memory, err := util.MemStat()
		if err != nil {
			util.Check(err)
		}
		RenderJSON(w, memory)
	})
}
